import request from '@/utils/request'

/**
 * 获取所有待审核用户信息
 * @returns 返回待审核用户列表
 */
export function getAllRegisterUser() {
    return request({
        url: '/admin/getAllRegisterUser', // 后端接口地址
        method: 'get', // 请求方法
    });
}

export const handleapproval = (id: number) => {
    return request.post('/admin/approval', { id } );
};

export const handlereject = (id: number) => {
    return request.post('/admin/reject', { id } );
};